package com.eb.buybuybuy.constant;

import com.eb.buybuybuy.annotation.Component;
import com.eb.buybuybuy.util.PropertiesUtil;

@Component
public class Configuration {
    public static final String PACKAGE_SCAN_ROOT = PropertiesUtil.get("autumn-boot.package-scan-root");
    public static final Integer currentLimitingSize = Integer.valueOf(PropertiesUtil.get("autumn-boot.filter.current-limiting-size"));

    public static final String DATABASE = PropertiesUtil.get("mysql.database");
    public static final String DB_USER = PropertiesUtil.get("mysql.user");
    public static final String DB_PASSWORD = PropertiesUtil.get("mysql.password");

    public static final String[] whitePath = {
            "/api/user/login",
            "/api/user/register"
    };
}
